package com.chen.demo.simple.repository;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chen.demo.simple.command.query.BookPageQuery;
import com.chen.demo.simple.command.query.BookQuery;
import com.chen.demo.simple.domain.entity.Book;

import java.util.List;

public interface BookRepository {
    void insertBook(Book book);
    void deleteBookById(Integer id);
    void updateBookById(Book book);
    List<Book> selectBookByName(BookQuery query);
    Page<Book> pageQueryBook(BookPageQuery pageQuery);
}
